package com.tedu.bill.demo1;

/**
 * Author：毕龙
 * Date: 2024/4/14 9:55
 */
public class TestExtends {
    public static void main(String[] args) {
        //创建dog对象
        Dog dog = new Dog();
        dog.kind = "田园犬";
        dog.sleep();
        dog.eat();
        //创建Cat对象
        Cat cat = new Cat();
        cat.sleep();
        cat.eat();
        //创建对象
        PersonSon son = new PersonSon();
        son.study();
    }
}
